package cn.buk.tms.dto;

import cn.buk.tms.entity.misc.CustomerTravelApprover;

/**
 * 企业客户的差旅审批人
 */
public class CustomerTravelApproverDto {

  private int id;

  private int customerId;

  private String customerName;

//  private Customer customer;

  /**
   * 所属部门
   */
//  private CustomerDepartment department;

  private int departmentId;

  private String departmentName;

  /**
   * 审批人在系统中的用户名
   */
//  private User user;

  private String username;

  private String fullName;

  /**
   * 职位ID
   */
  private int positionId;
  /**
   * 职位名称
   */
  private String positionName;

  private String email;

  private String mobile;

  /**
   * 角色类型
   */
  private int roleType;

  public static CustomerTravelApproverDto createdBy(CustomerTravelApprover o) {
    CustomerTravelApproverDto dto = new CustomerTravelApproverDto();

    dto.setId(o.getId());
    dto.setCustomerId(o.getCustomer().getId());
    dto.setCustomerName(o.getCustomer().getVipName());
    dto.setDepartmentId(o.getDepartment().getId());
    dto.setDepartmentName(o.getDepartment().getName());
    dto.setUsername(o.getUser().getUsername());
    dto.setFullName(o.getUser().getEmpname());
//    dto.setPositionName(o.getUser().get);
    dto.setMobile(o.getUser().getMobileNo());
    dto.setEmail(o.getUser().getEmail());
    dto.setRoleType(o.getRoleType());

    return dto;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getCustomerId() {
    return customerId;
  }

  public void setCustomerId(int customerId) {
    this.customerId = customerId;
  }

  public String getCustomerName() {
    return customerName;
  }

  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }

  public int getDepartmentId() {
    return departmentId;
  }

  public void setDepartmentId(int departmentId) {
    this.departmentId = departmentId;
  }

  public String getDepartmentName() {
    return departmentName;
  }

  public void setDepartmentName(String departmentName) {
    this.departmentName = departmentName;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getFullName() {
    return fullName;
  }

  public void setFullName(String fullName) {
    this.fullName = fullName;
  }

  public int getPositionId() {
    return positionId;
  }

  public void setPositionId(int positionId) {
    this.positionId = positionId;
  }

  public String getPositionName() {
    return positionName;
  }

  public void setPositionName(String positionName) {
    this.positionName = positionName;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }

  public int getRoleType() {
    return roleType;
  }

  public void setRoleType(int roleType) {
    this.roleType = roleType;
  }


//  private Date createTime;


}
